Skip to content

added warning messages when unable to remap the interface properly in Joint State Broadcaster. #2082

Open
sviridovm wants to merge 5 commits intoros-controls:masterfrom
sviridovm:jsb-warning
Open

added warning messages when unable to remap the interface properly in Joint State Broadcaster. #2082
sviridovm wants to merge 5 commits intoros-controls:masterfrom
sviridovm:jsb-warning

Conversation

@sviridovm
Copy link
Copy Markdown

@sviridovm sviridovm commented Dec 26, 2025

Added warn messages when an interface remapping does not occur.
Added warn messages when default interface is not present and thus there will be default NaN values.
Fixes issue #1776

@sviridovm sviridovm changed the title added warning messages when unable to remap the interface properly in Joint State Broadcaster. Fixes #1776 added warning messages when unable to remap the interface properly in Joint State Broadcaster. Dec 26, 2025
{
RCLCPP_WARN(
get_node()->get_logger(),
"Interface '%s' of joint '%s' is not mapped to any joint state field. The default value %s will be used.",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Print the proper double default value

@github-actions
Copy link
Copy Markdown
Contributor

This PR is stale because it has been open for 45 days with no activity. Please tag a maintainer for help on completing this PR, or close it if you think it has become obsolete.

@github-actions github-actions bot added the stale label Feb 11, 2026
sviridovm and others added 2 commits February 25, 2026 17:06
Co-authored-by: Sai Kishor Kothakota <saisastra3@gmail.com>
@github-actions github-actions bot removed the stale label Feb 26, 2026
Comment on lines +288 to +290
// Moreover, when there is not even the default interface (position, velocity, effort),
// then it should also print that it is not present and NaN's will be obtained in the
// respective field.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Moreover, when there is not even the default interface (position, velocity, effort),
// then it should also print that it is not present and NaN's will be obtained in the
// respective field.
// If default interfaces (pos/vel/eff) are missing, log a warning and return NaN in
// the fields.

Currently it's too wordy than necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants